package pojo;

import lombok.Data;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

@Data
/**
 * @author Administrator
 */
public class User {
    private String account  ;
    private String name;
    private String password;
    private int age;
    private String sex;
    private String address;
    private String phone;
    private String birthDay;
    private String registerDate;
    private List<String> friends = new ArrayList<>();
    private List<Group> groups =new ArrayList<>();
    public User( String name, String password, int age, String sex, String address,  String phone,List<String>friends) {
        this.name = name;
        this.password = password;
        this.age = age;
        this.sex = sex;
        this.address = address;
        this.phone = phone;
        this.friends = friends;
    }

    public List<Group> getGroups() {
        return groups;
    }

    public void setGroups(List<Group> groups) {
        this.groups = groups;
    }

    public User(String account, String password) {
        this.account = account;
        this.password = password;
    }

    public List<String> getFriends() {
        return friends;
    }

    public User() {

    }

    @Override
    public String toString() {
        return "User{" +
                "account='" + account + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", birthDay='" + birthDay + '\'' +
                ", registerDate='" + registerDate + '\'' +
                ", friends=" + friends +
                '}';
    }

}

